import { ComponentSchema } from "../../../designer-canvas/src/types";
import { DynamicResolver } from "../../../dynamic-resolver";

export function schemaResolver(resolver: DynamicResolver, schema: Record<string, any>, context: Record<string, any>): Record<string, any> {
    const tabPageSchema = resolver.getSchemaByType('tab-page') as ComponentSchema;
    schema.contents = [tabPageSchema];
    return schema;
}
